﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<UFPC.Models.Customer>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Delete
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Delete</h2>

    <h3>Are you sure you want to delete this?</h3>
    <fieldset>
        <legend>Fields</legend>

        <table>
            <tr>
                <td><b>Name</b></td>
                <td><%= Html.Encode(Model.Name) %></td>
            </tr>
            <tr>
                <td><b>Contact</b></td>
                <td><%= Html.Encode(Model.Contact) %></td>
            </tr>
            <tr>
                <td><b>Phone</b></td>
                <td><%= Html.Encode(Model.Phone) %></td>
            </tr>
            <tr>
                <td><b>Fax</b></td>
                <td><%= Html.Encode(Model.Fax) %></td>
            </tr>
            
            <tr>
                <td><b>Address</b></td>
                <td><%= Html.Encode(Model.Address.Street) %> &nbsp; <%= Html.Encode(Model.Address.City) %></td>
            </tr>
            <tr>
                <td><b>Area</b></td>
                <td><%= Html.Encode(Model.Address.Area) %></td>
            </tr>
        </table>
        
    </fieldset>
    <% using (Html.BeginForm()) { %>
        <p>
		    <input type="submit" value="Delete" /> |
		    <%= Html.ActionLink("Back to List", "Index") %>
        </p>
    <% } %>

</asp:Content>

